package cn.csc.module.shop.api.user.dto;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigInteger;
import java.time.LocalDateTime;

/**
 * @author liuchuang
 * @version 1.0
 * @date 2024/2/19 11:44
 * @modify
 */
@Api(tags = "RPC 服务 - 店铺用户 Response DTO")
@Data
public class ShopUserRespDTO {

    @ApiModelProperty(value = "商家用户id", required = true)
    private BigInteger id;

    @ApiModelProperty(value = "关联店铺id")
    private BigInteger shopId;

    @ApiModelProperty(value = "商户用户会员ID", required = true)
    @NotNull(message = "商户用户会员ID不能为空")
    private BigInteger userId;

    @ApiModelProperty(value = "昵称", required = true)
    @NotNull(message = "昵称不能为空")
    private String nickName;

    @ApiModelProperty(value = "员工编号")
    private String code;

    @ApiModelProperty(value = "联系方式")
    private String phoneNumber;

    @ApiModelProperty(value = "是否店铺管理员 0:否 1:是")
    private Byte isAdmin;

    @ApiModelProperty(value = "是否已经设置账号 0:未设置 1:已设置")
    private Byte hasAccount;

    @ApiModelProperty(value = "创建时间", required = true)
    private LocalDateTime createTime;

}
